
module.exports = Behavior({
  attached: function () {
    console.log("attached---隐藏滚动条");
    this.setScrollBar()
  },
  methods: {
    // 隐藏滚动条
    setScrollBar() {
      const query = this.createSelectorQuery();
      query.selectAll(".hide-scroll-bar").node()
      query.exec((res) => {
        if (res[0].length > 0) {
          res[0].forEach(target => {
            const scrollView = target.node;
            scrollView.showScrollbar = false;
          });
        }
      })
    }
  }
})